package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Admin;

import java.util.List;

@DBMapper
public interface AdminMapper {
    int deleteByPrimaryKey(Integer adminId);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer adminId);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    int updateLastLoginTime(Integer adminId);

    /**
     * 根据管理员信息查询
     * @param admin
     * @return
     */
    Admin getAdminInfoByCondition(Admin admin);


    List<Admin> selectByCondition(Admin admin);
}